//index.js
//获取应用实例
import { storage } from '../../config'


Page({
  data: {
    loadStatus:true
  },
  onShareAppMessage: function (res) {
    return {
      title: 'Ai导游',
      path: '/pages/index/index',
      success: function (res) {},
      fail: function (res) {}
    }
  },
  onLoad: function () {
    this.getLoadStatus();
    
  },
  getLoadStatus:function(){
    let that = this;
    let app = getApp();
    if (app.data.loadStatus) {
      that.setData({
        loadStatus: false
      });
    }else{
      setTimeout(function(){
        that.getLoadStatus();
      },500);
    }
  }
})
